/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.capex.javaee.sockets;

import java.net.*;
import java.io.*;

public class URLReader {

    public static void main(String[] args) throws Exception {
        URL ritch = new URL("http://www.ritchcenter.com/");
        BufferedReader in = new BufferedReader(new InputStreamReader(ritch.openStream()));
        String inputline;
        while ((inputline = in.readLine()) != null) {
            System.out.println(inputline);
        }
        in.close();
    }
}
